﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="corpview.aspx.cs" Inherits="Web.Corp.corpview" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    
    <title><%=this.corpObj.Title %> - 菠萝菠萝蜜网|5151feel.com</title>
<meta name="keywords" content="<%=this.corpObj.Title %>">
<meta name="description" content="本地最大的吃喝玩乐门衣，搜遍全城美食、夜店、购物、文化、休闲的信息！你手边的吃喝玩乐指南！" />
<style type="text/css">
@import url("Images/head_footer.css");
@import url("Images/all.css");
@import url("Images/night.css");
</style>
<link href="Images/head_footer.css" rel="stylesheet">
<link href="Images/all.css" rel="stylesheet">
<link href="Images/night.css" rel="stylesheet">
<link href="Images/storebox.css" rel="stylesheet">

<script type="text/javascript" src="/js/Corp/store.js"></script>
<script type="text/javascript" src="/js/Corp/yedian.js"></script>
<script type="text/javascript" src="/js/Corp/jquery-set.js"></script>
<script type="text/javascript" src="/js/Corp/store_admin.js"></script>
<script type="text/javascript" src="/js/Corp/storebox.js"></script>
<script type="text/javascript" src="/js/Corp/swfobject.js"></script>
<script type="text/javascript" src="/js/Corp/club_mark.js"></script>
<script language="javascript" src=" http://api.51ditu.com/js/maps.js "></script>


<script language="javascript">
    function checkLogin() {
        //ReturnUrl=%2fuser%2fChangePassword.aspx&AspxAutoDetectCookieSupport=1
        var curUsername = "";
        curUsername = document.getElementById("username").value
        return curUsername;
    }
    function checkComment() {
        var content = $('#content').val();
        if (content.length < 10 || content.length > 1000) {
            $('#content_err').css("display", "inline");
            $('#content').attr('check', '1');
            return false;
        }
        return true;
    }
    function __$(obj) { return document.getElementById(obj); }
    function PostCommentData() {
        var pop = __$("cmt1").options[__$("cmt1").selectedIndex].text;
        var face = __$("cmt2").options[__$("cmt2").selectedIndex].text;
        var service = __$("cmt3").options[__$("cmt3").selectedIndex].text;
        var price = __$("cmt4").options[__$("cmt4").selectedIndex].text;
        var corpID = '<%= corpObj.CorpID %>';
        if (checkComment()) {
          //  alert($('#content').val());
            $.ajax({ url: 'corpajax.aspx',
                type: 'POST',
                data: { IPop: pop, IFace: face, IService: service, IPrice: price, Body: $('#content').val(), CorpID: corpID },
                dataType: 'html',
                timeout: 1000,
                error: function() { alert('出现未知错误，请稍候发表评论'); },
                success: function(data) {
                    if (data == "success") {
                        alert("谢谢你的评论！");
                        // document.getElementById("cmtfrom").reset();
                        $('#content').value="";
                    }
                    else
                        alert("服务器错误，请稍候再发表评论！");
                }
            });

        }
    }
    function AddToFavourite() {
        if (checkLogin() == "") {
            alert("请先登录后在收藏!");
            return false;
        }
        else {
            var corpID = '<%= corpObj.CorpID %>';
            $.ajax({ url: 'corpajax.aspx',
            type: 'POST',
                data: {collect:1,CorpID:corpID},
                dataType: 'html',
                timeout: 1000,
                error: function() { alert('出现未知服务器错误'); },
                success: function(data) {
                    if (data == "success") {
                        alert("收藏成功！");
                    }
                    else
                        alert("服务器错误，请稍候！");
                }
            });
        }
    }
</script>
<script type="text/javascript" src="/js/Jquery/jquery.js"></script>
<script type="text/javascript" src="/js/Jquery/jquery.json-1.3.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      
<%--<div class="HeadNav">
	<div class="HeadNavCenter gray3"><a href="/"><img src="Images/logo.gif" class="fleft" /></a><ul><a href="/">首 页</a><span>|</span><a href="http://www.pw35.com/Shop/">商 家</a><span>|</span><a href="http://www.pw35.com/Fenlei/">分 类</a><span>|</span><a href="http://www.pw35.com/News/">新 闻</a><span>|</span><a href="http://www.pw35.com/ZcInfo/">时 尚</a><span>|</span><a href="http://Home.pw35.com">家 园</a><span>|</span><a href="http://Home.pw35.com/Zone/">个性空间</a><span>|</span><a href="http://www.pw35.com/Know/">知道分子</a><span>|</span><a href="http://Home.pw35.com/Circle/">朋友圈</a><span>|</span><a href="http://www.pw35.com/Club">社区论坛</a></ul>
	<div class="Login"><script type="text/javascript" src="/script/LoginIndex.aspx"></script></div>
	</div>
</div>--%>
<div id="SpaceTop">
	<div id="SpaceTopCenter">
		<div id="SpaceTopCenter_logo"><a href="http://www.5151feel.com" target="_blank"><img src="images/sp_toplogo.gif" alt="菠萝菠萝蜜" /></a></div>
		<div id="SpaceTopCenter_city">
		<select name="select" id="head2_linp" onchange="location.href=this.value">
		  		  <option value="http://www.5151feel.com/index.html" selected>北京</option>
		  		  <option value="http://shanghai.5151feel.com/index.html" >上海</option>
		  		  <option value="http://fuzhou.5151feel.com/index.html" >福州</option>
		  		  <option value="http://guangzhou.5151feel.com/index.html" >广州</option>
		  		  <option value="http://qingdao.5151feel.com/index.html" >青岛</option>
		  		</select>
		</div>
		<div id="SpaceTopCenter_nav" class="text0"><a href="/index.aspx">首页</a><span>|</span>
		<a href="/er_index/index.aspx?tid=1">美食</a><span>|</span>
		<a href="/er_index/index.aspx?tid=5">购物</a><span>|</span>
		<a href="/er_index/index.aspx?tid=3">休闲娱乐</a><span>|</span>
		<a href="/er_index/index.aspx?tid=4">酒店</a><span>|</span>
		<a href="/er_index/index.aspx?tid=4">旅游度假</a><span>|</span>
		<a href="/er_index/index.aspx?tid=2" target="_blank">夜场酒吧</a>
		</div>
		<div id="SpaceTopCenter_login" class="text0">
			<script type="text/javascript" language="javascript" src=""></script>
		</div>
	</div>
</div>
<!--头部开始-->
<script>
    function CopyUrl() {
        var Url = top.location.href;
        window.clipboardData.setData("Text", Url);
        //clipboardData.setData('text',QQ.value);
        alert("复制成功，请粘贴到你的QQ/MSN上推荐给你的好友！\r\n\r\n内容如下：\r\n" + Url);
    }
</script>
<div class="MainTop">
<div class="TT">
<div class="Bt"><%=this.corpObj.Title %></div>
<div class="Address"><ul class="blue_q">商家标签：<a href=''><%=this.corpObj.Keys %></a> </ul>
<ul class="blue_q2" ><%=string.Format("{0}?cid={1}", Request.Url.Host,corpObj.CorpID)%>
<a title="复制本文链接发给你QQ/MSN上的好友" href="JavaScript:CopyUrl()" rel="nofollow">复制链接发给好友</a>
</ul></div>
<form name="form_tag" id="form_tag"><input type="hidden" name="tag1" value="" /></form>
</div>
<div class="Js"></div>
<div class="Tj white"><a href="#" onClick="AddToFavourite();">收藏本店</a><%--&nbsp;|&nbsp;<a href="" target="_blank">推荐本店</a>--%></div>
</div>
<div class="blank10"></div>
<div class="MainN">
<img src="Images/night_bg3l.png" class="fleft" />
<div class="MainNav">
<span class="fleft"><font class="white"><a href="" title="<%=this.corpObj.Title %>">首 页</a></font>
<%--<img src="Images/night_icon1.gif" /><a href="">环 境</a>
<img src="Images/night_icon1.gif" /><a href="">地 图</a>
<img src="Images/night_icon1.gif" /><a href="">邀 请</a>--%></span>
<div class="MainNavSearch">
<form action="http://www.pw35.com/Shop/Search.aspx" method="get" name="frmSearch" id="frmSearch" target="_blank">
<ul><font class="blue_q2 f12">全文搜索:</font><input name="keyword" type="text" class="Minput1" />
<input name="submit" type="submit" value="搜索" class="Mbut1" /></ul><ul class="MainNavSearch_r">
<a href="#" onclick="return false;" >商户管理</a></ul></form></div>
</div>
<img src="Images/night_bg3r.png" class="fright" />
</div>
<div class="blank10"></div>
<!--主体 begin-->
<div class="Main">
	<!--左侧 begin-->
	<div class="MainL">
		<!--视频 begin-->
		<div class="Video">
			<img src="Images/flt4.gif" class="flt" /><img src="Images/frt4.gif" class="frt" /><img src="Images/flb4.gif" class="flb" /><img src="Images/frb4.gif" class="frb" />
			<div class="VideoNav">
				<ul  id="storeIndex1"  onClick="setStore_video_Style(1);" class="VideoNavon">视频展示</ul>
				<ul id="storeIndex3" class="VideoNav2" onClick="setStore_video_Style(3);">图片展示</ul>
			</div>
			<div class="VideoL" id="jkcon1">
			<div id="tv_new">
		  	<div id="changetv">
		  		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="530" height="390">
						<param name="movie" value="/video/flv.swf" />
						<param name="quality" value="high" />
						<param name="allowFullScreen" value="true" />
						<param name="FlashVars" value="IsContinue=1&LogoText=www.5151feel.com&BarPosition=1&IsAutoPlay=1&vcastr_file=<%=this.GetVideUrl()%>" />
						<embed src="video/flv.swf" allowFullScreen="true" FlashVars="IsContinue=1&LogoText=www.5151feel.com&BarPosition=1&IsAutoPlay=1&vcastr_file=<%=this.GetVideUrl()%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="530" height="390"></embed>
						</object>
	
		 	</div>	
			</div>			
		</div>
	    <div class="VideoL" id="jkcon2"  style="display:none;"><div id="tv"></div><div id="content4_left_d"></div></div>
		<div class="VideoL" id="jkcon3" style="display:none;">
            <dl style="display:none;">
					<dt><a href="" target="_blank"><img src="" /></a></dt><dd></dd><dd>由商户管理员上传
                    </dd></dl>
				<div class="Page" id="store_r1_left_d2"><a href="">查看全部</a></div>
								
			</div>
			<div class="VideoR"><script type="text/javascript" src=""></script></div>
			<div class="clear"></div>
			<div class="VideoB"><ul>
			<a title="复制本文链接发给你QQ/MSN上的好友" href="JavaScript: copyUrl()" rel="nofollow">转贴本视频到QQ、MSN、论坛或BLOG</a></ul>
			<ul class="store_r1_left_dr" style="padding-left:31px;margin-top:5px; background:none;"></ul></div>
		</div>
		<div class="blank10"></div>
		
		<!--更多视频&360 begin-->
				<div class="MoreVideo">
			<h2>更多视频</h2>
			<ul class="MVL"><img src="Images/leftt1.gif"  onclick="void(0);" style="cursor:pointer;" /></ul>
			<ul id="l_video_dst">


</ul>
			<ul class="MVR"><img src="Images/leftt1.gif"  onclick="void(0);" style="cursor:pointer;" /></ul>
			<div id="l_video_src">
			</div>
			<div class="clear"></div>
			</div>
				<!--更多视频&360 begin-->
	<div class="blank10"></div>
	<!--留言评论 begin-->
	<div class="Comments">
		
<h2><img src="Images/icon02.gif" />用户评论</h2>
		<div class="blank10"></div>
		<a name="comment_list"></a>
			
<div id="show_comment">

<asp:Repeater ID="rptcmt" runat="server" EnableViewState="false" >
    <ItemTemplate>
        <div class="CommentsCont">
				<div class="CommentsCont_l">
					<ul>
						<a href=""><%# Eval("UserName") %></a>
					</ul>
				</div>
				<div class="CommentsCont_r">
					<div class="rpl"></div>
					<div class="Message">
						<div class="Name">
							<ul><b><%# Eval("UserName") %></b></ul>
						</div>
						<div class="MessageCont"><p class="level"> 环境：<%# Eval("IFace") %>   服务：<%# Eval("IService") %> 人气:<%# Eval("IPop") %>  消费:<%# Eval("IPrice") %></p><p class="cmTxt"><%# Eval("Content") %></p><p class="time"><%# Eval("CreateOn") %></p></div>
					</div>
				</div>
	    </div>
	    </ItemTemplate>
</asp:Repeater>
    
	  
</div>

<div class="Released blue_s">
<h2><img src="Images/flt2.gif" class="flt" /><img src="Images/frt2.gif" class="frt" /><img src="Images/icon02.gif" />发表您对 肯德基黄兴南路店 的点评<font class="fx f12"> (*为必填选项)</font></h2>
<ul> 人气：
      <select name="cmt1" id="cmt1">
				  <option value="5">非常好</option>
				  <option value="4">很好</option>
				  <option value="3">好</option>
				  <option value="2">一般</option>
				  <option value="1">差</option>
			      </select>&nbsp;
环境：   <select name="cmt2" id="cmt2">
				  <option value="5">非常好</option>
				  <option value="4">很好</option>
				  <option value="3">好</option>
				  <option value="2">一般</option>
				  <option value="1">差</option>
			      </select>&nbsp;
服务：   <select name="cmt3" id="cmt3">
				  <option value="5">非常好</option>
				  <option value="4">很好</option>
				  <option value="3">好</option>
				  <option value="2">一般</option>
				  <option value="1">差</option>
			      </select>&nbsp;
价格：<select name="cmt4" id="cmt4">
				  	<option value="1">便宜</option>
          			<option value="2">适中</option>
					<option value="3">贵</option>
          			<option value="4">很贵</option>
            </select>		
 </ul>
 
		<ul><b>消费感受：</b>(50-2000个字符)<br />
				 <textarea  name="content" id="content" class="input2" cols="50" rows="7"></textarea><font id="content_alt" style="display:none" class="white" >请填写评论内容！</font><font id="content_err"  style="display:none" class="white">×评价内容应为(10-2000个字符)</font>
</ul>

					 <div id="tooltip" class="tu_biaoqi gray4"  style="position:absolute;display:none;"></div>
				<ul>
			<input type="hidden" name="username" value='<%= User.Identity.Name %>'/>
			<input type="submit" class="but2" id="store_but1" onclick="PostCommentData();"  value="发表评论" />
				</ul>
			</div>
		<div class="blank10"></div>
		</div>
		<div class="clear"></div>
	</div> 
	<!--右侧 begin-->
	<div class="MainR">

<%--<div class="Temp white">
			<div class="Temp_1" id="Commend6567">0</div>
			<div class="Temp_2">
			  <UL>
				<li id="Up6567" class="Temp_2r"><a href="" onclick="javascript:UpCommendNum('6567','Commend6567','Up6567');return false;" title="顶一下">顶一下</a></li></UL>
				<div class="clear"></div>
			</div>
		</div>--%>
		<div class="blank10"></div>	<!--右侧 详细信息-->
	<!--详细信息 begin-->
		<div class="Information">
		<img src="Images/flt.gif" class="flt" /><img src="Images/frt.gif" class="frt" /><img 
                src="Images/flb3.gif" class="flb" /><img src="Images/frb3.gif" class="frb" />
			<div class="Infor_t">
			<ul>
				<li class="Infor_ton" id="astore1" onClick="setStore_stroemsg_Style(1);">基本信息</li>
				<li class="Infor_t2" id="astore2" onClick="setStore_stroemsg_Style(2);">简 介</li>
				<li id="astore3" onClick="setStore_stroemsg_Style(3);">其他信息</li>
				<li class="Infor_t2" id="astore4" onClick="setStore_stroemsg_Style(4);" style="display:none">地 图</li>
			</ul>
			<div class="qc blue_q2"></div>
			</div>
			<div class="Infor_1" id="stormsg_1">
			<div class="clear"></div>
								<ul><label>商    户：</label><li><%=corpObj.Title %></li></ul>
								<ul><label>地    址：</label><li><%=corpObj.Address %></li></ul>
								<ul><label>电    话：</label><li><%=corpObj.Telphone %></li></ul>
								<ul><label>标    签：</label><li><a href=''><%=corpObj.Keys %></a> </li></ul>	
								<ul><label>公交线路：</label><li><%=corpObj.BusLine %></li></ul>
			</div>
			<div class="Infor_2" id="stormsg_2" style="display:none;"><%=corpObj.Summary %></div>
			<div class="Infor_3" id="stormsg_3" style="display:none;">
			<div class="clear"></div>
				<ul><label>营业时间：</label><li><%=corpObj.WorkTime %></li></ul>								
				<ul><label>周围标识：</label><li></li></ul>
				<ul><label>网址：</label><li><%=corpObj.Site %></li></ul>
				<ul><label>人均消费：</label><li><%=corpObj.Consume %></li></ul>
			</div>
			<div class="Infor_5" id="stormsg_4" style="display:none;">
				<ul class="Infor_5map">	<div class="Map" id="store_r1"><img src='/Shop/Images/noMap.jpg'></div></ul>
		</div>
		</div>
		<div class="blank10"></div>

		<div class="Photo" style="display:none">
			<h2><img src="Images/flt.gif" class="flt" /><img src="Images/frt.gif" class="frt" />
			<img src="Images/icon04.gif" />商户环境<span>
			<a href="" target="_blank">	<img src="Images/more.gif" /></a></span></h2>
			<div class="blank10"></div>
			<ul>
<li><a href="" target="_blank"><img src="" /></a><span></span></li>        											
            </ul>
			<div class="blank10"></div>
		</div>
		<div class="blank10"></div>			
		<div class="Around">
			<h2><img src="Images/flt.gif" class="flt" /><img src="Images/frt.gif" class="frt" /><img 
                    src="Images/icon08.gif" />周边商户</h2>
			<div class="blank10"></div>
			<div class="AroundCont1" id="storeround">
<asp:Repeater runat="server" ID="rptAroundCorp" EnableViewState="false">
    <ItemTemplate>
    <div id="<%# string.Format("b_{0}",Container.ItemIndex+1)%>"  style='display:<%# (Container.ItemIndex==0)?"block":"none"%>' >
				<a href="<%# Eval("CorpID","corpview.aspx?cid={0}")%>" target="_blank">
				<img src="/Shared/Controls/ImageHandler.ashx?p=<%# Eval("ImageSrc") %>&s=90" /></a>
				<ul>
					<h4 class="yelce"><%# Eval("Title") %></h4>
					<li><label>电    话：</label><%# Eval("Telphone") %></li>
					<li class="AroundCont1r"><label>地   址：</label><%# Eval("Address") %></li>
    </ul></div>
    </ItemTemplate>
</asp:Repeater>    
			</div>
			<div class="blank5"></div>
			<div class="AroundCont2">
			  <ul>
			  <asp:Repeater runat="server" ID="rptAroundCorpTitle" EnableViewState="false">
    <ItemTemplate>
				<li><a href='<%# Eval("CorpID","corpview.aspx?cid={0}")%>' target="_blank" onmouseover="fnShowRound(<%# Container.ItemIndex+1%>)"><%# Eval("Title")%></a></li>
			 </ItemTemplate>
</asp:Repeater>    	
			  </ul>
			</div>
			<div class="blank10"></div>
		</div>		<div class="blank10"></div>
	
		
		<div class="blank10"></div>		

		
		<div class="blank10"></div>	
		
		

		<div class="AroundB">
			<h2><img src="Images/flt.gif" class="flt" /><img src="Images/frt.gif" class="frt" /><img 
                    src="Images/icon39.gif" />同类商家</h2>
						
						
		 <asp:Repeater runat="server" ID="rptSameCorp" EnableViewState="false">
    <ItemTemplate>				

	<ul>
	<a href='<%# Eval("CorpID","corpview.aspx?civ={0}")%>' target="_blank"><img src="/Shared/Controls/ImageHandler.ashx?p=<%# Eval("ImageSrc") %>&s=110" /></a>
				<h5><div>1</div><a href='<%# Eval("CorpID","corpview.aspx?civ={0}")%>' target="_blank"><%# Eval("Title")%></a></h5>
					<li><label>电    话：</label><%# Eval("Telphone") %></li>
					<li><label>地    址：</label><%# Eval("Address") %></li>
   	</ul>
     </ItemTemplate>
</asp:Repeater>  
    
			<div class="clear"></div>
		</div>
		<div class="blank10"></div>	
		<!--百度提供的广告 begin-->
		<div class="ADCont" style="display:none">
			<h2><img src="Images/flt.gif" class="flt" /><img src="Images/frt.gif" class="frt" />Google提供的广告</h2>
			<div class="blank10"></div>
	  </div>
		<div class="clear"></div>
	</div>
</div>


<script language="JavaScript">
    $('#content').blur(function() {
        //去掉空白字符
        if ($(this).attr('id') == 'content') {
            $(this).val($.trim($(this).val()));
        }
        //判断是否为空
        if ($(this).val() == '') {
            $(this).siblings('font').css("display", "none");
            $('#' + this.id + '_alt').css("display", "inline");
        }
        else {
            var flag = true;
            var err_id = this.id + '_err';
            //隐藏所有错误提示
            $(this).siblings('font').each(function() {
                if ($(this).css("display") == 'inline') {
                    $(this).css("display", "none");
                }
            });
            //判断是否符合规则
            switch (this.id) {
                case 'content':
                    //判断长度是否符合
                    var content = $('#content').val();
                    //alert(name.isUserName());
                    if (content.length < 10 || content.length > 1000) {
                        flag = false;
                        //err_id = this.id+'_err1';
                    }
                    break;
            }
            if (flag == false) {//有错误
                $('#' + this.id + '_err').css("display", "inline");
                $('#' + this.id).attr('check', '1');
            }
            else {
                $('#' + this.id).attr('check', '0');
            }
        }
    });

</SCRIPT>


<!--尾部部分开始-->
<div class="blank10"></div>
<div class="MainBottom1 blue_q">
<a href="/about/about.htm" target="_blank">关于品网</a><span>|</span><a href="/bout/adServer.htm" target="_blank">广告服务</a><span>|</span><a href="/about/inout.htm" target="_blank">友情链接</a><span>|</span><a href="/about/job.htm" target="_blank">招贤纳士</a><span>|</span><a href="/about/privite.htm" target="_blank">使用条款</a><span>|</span><a href="/about/contact.htm" target="_blank">联系我们</a></div>
<div class="MainBottom2 blue18">Copyright © 2008 <a href="http://www.pw35.com">品网(pw35.com)</a> 版权所有&nbsp;&nbsp;<a href="http://www.miibeian.gov.cn/" target="_blank">湘ICP备07009822号</a>
</div>

    </div>
    </form>
</body>
</html>
